package com.wnzt.baszh.entity;

import java.util.Arrays;
import java.util.List;

public class MedicalFile {
	
	 String fzyid;//住院号
	 String fprn; //病案号
	 String ftimes;//住院次数
	 String fname;//姓名
	 String medicalid;
	 int ftype;
	 String ftitle;//源文件名
	 String fpdfpath;
	 byte[] filebyte;  //源文件流
	 String ffilehash; //源文件hash值(哈希MD5算法)
	 String ffilehashsign;//源文件hash值ca签名(哈希MD5算法)
	 List<MedicalPdf> medicalPdfs;
	
	public String getFzyid() {
		return fzyid;
	}
	public void setFzyid(String fzyid) {
		this.fzyid = fzyid;
	}
	public String getFprn() {
		return fprn;
	}
	public void setFprn(String fprn) {
		this.fprn = fprn;
	}
	public String getFtimes() {
		return ftimes;
	}
	public void setFtimes(String ftimes) {
		this.ftimes = ftimes;
	}
	public String getFname() {
		return fname;
	}
	public void setFname(String fname) {
		this.fname = fname;
	}
	public String getMedicalid() {
		return medicalid;
	}
	public void setMedicalid(String medicalid) {
		this.medicalid = medicalid;
	}
	public int getFtype() {
		return ftype;
	}
	public void setFtype(int ftype) {
		this.ftype = ftype;
	}
	public String getFtitle() {
		return ftitle;
	}
	public void setFtitle(String ftitle) {
		this.ftitle = ftitle;
	}
	public String getFpdfpath() {
		return fpdfpath;
	}
	public void setFpdfpath(String fpdfpath) {
		this.fpdfpath = fpdfpath;
	}
	
	public List<MedicalPdf> getMedicalPdfs() {
		return medicalPdfs;
	}
	public void setMedicalPdfs(List<MedicalPdf> medicalPdfs) {
		this.medicalPdfs = medicalPdfs;
	}
	
	public byte[] getFilebyte() {
		return filebyte;
	}
	public void setFilebyte(byte[] filebyte) {
		this.filebyte = filebyte;
	}
	
	
	public String getFfilehash() {
		return ffilehash;
	}
	public void setFfilehash(String ffilehash) {
		this.ffilehash = ffilehash;
	}
	public String getFfilehashsign() {
		return ffilehashsign;
	}
	public void setFfilehashsign(String ffilehashsign) {
		this.ffilehashsign = ffilehashsign;
	}
	/**
	 * @author [lv tang wei]
	 * [2017年5月19日]
	 */
	public MedicalFile() {
		super();
	}
	
	@Override
	public String toString() {
		return "MedicalFile [fzyid=" + fzyid + ", fprn=" + fprn + ", ftimes="
				+ ftimes + ", fname=" + fname + ", medicalid=" + medicalid
				+ ", ftype=" + ftype + ", ftitle=" + ftitle + ", fpdfpath="
				+ fpdfpath + ", filebyte=" + Arrays.toString(filebyte)
				+ ", ffilehash=" + ffilehash + ", ffilehashsign="
				+ ffilehashsign + ", medicalPdfs=" + medicalPdfs + "]";
	}
	
	/**
	 * @author [lv tang wei]
	 * @param fzyid
	 * @param fprn
	 * @param ftimes
	 * @param fname
	 * @param medicalid
	 * @param ftype
	 * @param ftitle
	 * @param fpdfpath
	 * @param filebyte
	 * @param medicalPdfs
	 * [2017年5月24日]
	 */
	public MedicalFile(String fzyid, String fprn, String ftimes, String fname,
			String medicalid, int ftype, String ftitle, String fpdfpath,
			byte[] filebyte, List<MedicalPdf> medicalPdfs) {
		super();
		this.fzyid = fzyid;
		this.fprn = fprn;
		this.ftimes = ftimes;
		this.fname = fname;
		this.medicalid = medicalid;
		this.ftype = ftype;
		this.ftitle = ftitle;
		this.fpdfpath = fpdfpath;
		this.filebyte = filebyte;
		this.medicalPdfs = medicalPdfs;
	}
	
	/**
	 * @author [lv tang wei]
	 * @param fzyid
	 * @param fprn
	 * @param ftimes
	 * @param fname
	 * @param medicalid
	 * @param ftype
	 * @param ftitle
	 * @param fpdfpath
	 * @param filebyte
	 * @param ffilehash
	 * @param ffilehashsign
	 * @param medicalPdfs
	 * [2017年7月10日]
	 */
	public MedicalFile(String fzyid, String fprn, String ftimes, String fname,
			String medicalid, int ftype, String ftitle, String fpdfpath,
			byte[] filebyte, String ffilehash, String ffilehashsign,
			List<MedicalPdf> medicalPdfs) {
		super();
		this.fzyid = fzyid;
		this.fprn = fprn;
		this.ftimes = ftimes;
		this.fname = fname;
		this.medicalid = medicalid;
		this.ftype = ftype;
		this.ftitle = ftitle;
		this.fpdfpath = fpdfpath;
		this.filebyte = filebyte;
		this.ffilehash = ffilehash;
		this.ffilehashsign = ffilehashsign;
		this.medicalPdfs = medicalPdfs;
	}
	
}
